package com.xja.service.impl;

import com.xja.mapper.ContentTypeMapper;
import com.xja.pojo.ContentType;
import com.xja.service.ContentTypeService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @作者:褚
 * @工程名:xja_blog
 * @方法:ContentTypeServiceImpl
 * @创建时间:2022/4/17 22:52
 */
@Service
public class ContentTypeServiceImpl implements ContentTypeService {
    @Autowired
    private ContentTypeMapper contentTypeMapper;

    @Transactional(readOnly = true)
    @Override
    public List<ContentType> selectConType() {
        return contentTypeMapper.selectConType();
    }
}
